import requests
class a():
    def test_login(self):
        #通用请求方法
        req = requests.request(method="GET",url="http://localhost/oa/index.php")
        print(req)
        # print(req.headers)
        # print(req.text)
        #GET方法
        #req_get = requests.get(url=)
if __name__ == "__main__":
    a().test_login()